<%--
  Created by IntelliJ IDEA.
  User: limin
  Date: 2021/8/10
  Time: 17:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">

    <title></title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">

    <link rel="stylesheet" type="text/css" href="css/edittable.css"  >
    <link rel="stylesheet" type="text/css" href="css/validate.css"  >
    <link rel="stylesheet" type="text/css" href="css/maintable.css" >
    <script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
    <script>
        $(function(){
            $("input[type=text],textarea").focus(function(){
                $(this).addClass("input_focus");
            }).blur(function(){
                $(this).removeClass("input_focus");
            });

            $(".form_btn").hover(function(){
                    $(this).css("color","red").css("background","#6FB2DB");
                },

                function(){
                    $(this).css("color","#295568").css("background","#BAD9E3");
                });
        });
    </script>
    <style>
        label{
            display:block;
            margin-top:4px;
            color:red;
        }

        .td_input{
            width:230px;
        }
    </style>
</head>

<body>
<div class ="div_title">
    <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单商品列表</span></div>
</div>

<table class="main_table">
    <tr>
        <td>商品名称</td>
        <td>单位</td>
        <td>单价</td>
        <td>购买数量</td>
    </tr>
    <c:forEach var="goods" items="${orderGoods}">
        <tr>
            <td>${goods.goodsName}</td>
            <td>${goods.unit}</td>
            <td>${goods.price}</td>
            <td>${goods.saleCount}</td>
        </tr>
    </c:forEach>
</table>

<div class ="div_title">
    <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单详情列表</span></div>
</div>

<table class="edit_table">
    <tr>
        <td class="td_info">订单号</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.orderNo}</label>
        </td>
        <td class="td_info">邮费</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.postage}</label>
        </td>
    </tr>
    <tr>
        <td class="td_info">付款方式</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.payMethod}</label>
        </td>
        <td class="td_info">邮递方式</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.postMethod}</label>
        </td>
    </tr>
    <tr>
        <td class="td_info">下单日期</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.orderDate}</label>
        </td>
        <td class="td_info">邮寄地址</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.address}</label>
        </td>
    </tr>
    <tr>
        <td class="td_info">订单状态</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.orderState}</label>
        </td>
        <td class="td_info">发货日期</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.sendDate}</label>
        </td>
    </tr>
    <tr>
        <td class="td_info">订单金额</td>
        <td class="td_input">
            <label class="txtbox">${orderInfo.amount}</label>
        </td>
        <td class="td_info">会员ID</td>
        <td class="td_input">
            <label class="txtbox"> <c:out value="${order.memberNo}" default="临时用户 非会员"></c:out></label>
        </td>
    </tr>
    <tr>
        <td class="td_info"> </td>
        <td>
            <button class="form_btn" onclick="window.history.back()" >返回 </button>
        </td>
        <td></td>
        <td></td>
    </tr>
</table>
</body>
</html>
